package com.tony.util;

import org.apache.log4j.Logger;

public class LoggerUtil {

    public static void info(Logger logger, String message) {
        if (logger.isInfoEnabled()) {
            logger.info(message);
        }
    }

    public static void error(Logger logger, String message, Throwable e) {
        logger.error(message, e);
    }
}
